package com.witdata.common.service.subject;

import com.witdata.common.domain.dto.QuestionDto;
import com.witdata.common.domain.dto.SqlCheckDto;
import com.witdata.common.domain.dto.SubjectQuestionDto;

import java.util.List;

public interface QuestionService {
    List<QuestionDto> getQuestionListBySubjectId(Long subjectId, String type);

    List<QuestionDto> getQuestionListBySubjectId(Long subjectId);

    void createQuestion(SubjectQuestionDto subjectQuestionDto);

    void deleteQuestionById(Long questionId);

    List<QuestionDto> getLatestQuestionListBySubjectId(Long subjectId, String type);

    List<QuestionDto> getLatestQuestionListBySubjectId(Long subjectId);

    QuestionDto getQuestionInfo(Long id);

    List<QuestionDto> getQuestionListByType(String type);

    boolean validateAnswer(Long questionId, String[] userAnswer);

    void checkSqlContent(SqlCheckDto sqlCheckDto);
}
